// NozzleCreateDoc.cpp: implementation of the NozzleCreateDoc class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
//#include "commandmodule.h"
#include "NozzleCreateDoc.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

NozzleCreateDoc::NozzleCreateDoc()
{
	this->m_nNozzleType = -1;
	this->m_strPipeRank = "";
	this->m_strPipeID = "";
}

NozzleCreateDoc::~NozzleCreateDoc()
{

}

inline void NozzleCreateDoc::SetNozzleType(const int nType)
{
	ASSERT((nType == 0)||(nType == 1));
	this->m_nNozzleType = nType;
}

inline int NozzleCreateDoc::GetNozzleType() const
{
	ASSERT((m_nNozzleType == 0)||(m_nNozzleType == 1));
	return m_nNozzleType;
}

inline void NozzleCreateDoc::SetPipeRank(const StdString &strRank)
{
	//ASSERT(!strRank.IsEmpty());

	this->m_strPipeRank = strRank;
}

inline StdString& NozzleCreateDoc::GetPipeRank() const
{
	//ASSERT(!this->m_strPipeRank.IsEmpty());

	return const_cast<StdString&>(this->m_strPipeRank);
}



inline void NozzleCreateDoc::SetPipeID(const StdString &strID)
{
	//ASSERT(!strID.IsEmpty());

	this->m_strPipeID = strID;
}

inline StdString& NozzleCreateDoc::GetPipeID() const
{
	//ASSERT(!this->m_strPipeID.IsEmpty());

	return const_cast<StdString&>(this->m_strPipeID);
}



void NozzleCreateDoc::AddDlgToDoc(CDialog *dlg)
{
	ASSERT(dlg);
	this->m_DialogList.AddHead(dlg);
}

inline void NozzleCreateDoc::SetHeatPreservationType(const StdString &strHeat)
{
	//ASSERT(!strHeat.IsEmpty());

	this->m_strHeatPreservationType = strHeat;
}

inline StdString& NozzleCreateDoc::GetHeatPreservationType() const
{
	//ASSERT(!m_strHeatPreservationType.IsEmpty());

	return const_cast<StdString&>(m_strHeatPreservationType);
}

inline void NozzleCreateDoc::SetNozzleName(const StdString &strNozzleName)
{
	//ASSERT(!strNozzleName.IsEmpty());

	this->m_strNozzleName = strNozzleName;
}

inline StdString& NozzleCreateDoc::GetNozzleName() const
{
	//ASSERT(!m_strNozzleName.IsEmpty());

	return const_cast<StdString&>(m_strNozzleName);
}

inline void NozzleCreateDoc::SetNozzleID(const StdString &strNozzleID)
{
	//ASSERT(!strNozzleID.IsEmpty());

	this->m_strNozzleID = strNozzleID;
}



inline StdString& NozzleCreateDoc::GetNozzleID() const
{
	//ASSERT(!m_strNozzleID.IsEmpty());

	return const_cast<StdString&>(m_strNozzleID);
}

inline void NozzleCreateDoc::SetFaceType(const StdString &strType)
{
	this->m_strFaceType = strType;
}

inline StdString& NozzleCreateDoc::GetFaceType() const
{
	return const_cast<StdString&>(m_strFaceType);
}
